package com.hyq.prototype.examples;
/**
* @ClassName: Mail 
* @Description: 邮件实例-用于针对不同用户进行定制内容
* @author Janus
 */
public class Mail implements Cloneable{
	
	//邮件收件人
	private String receiver;
	//邮件名称
	private String name;
	//称呼  先生/女士
	private String call;
	//邮件内容
	private String context;
	//构造函数 用于获取
	public Mail(advTemplate temp){
		//设置邮件名称
		this.name=temp.getAdvName();
		//设置邮件内容
		this.context=temp.getAdvContext();
	}
	//重写Cloneable中clone方法用于将该实例进行按字段复制
	@Override
	protected Mail clone(){
		Mail mail = null;
		try {
			mail = (Mail) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return mail;
	}

	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCall() {
		return call;
	}
	public void setCall(String call) {
		this.call = call;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	
}
